package org.csu.laboratoryequipment.service;

import org.csu.laboratoryequipment.common.CommonResponse;
import org.csu.laboratoryequipment.entity.Borrow;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

public interface BorrowService {
    public CommonResponse<List<Borrow>> getBorrowList();
    public CommonResponse<List<Borrow>> getBorrowById(int transactionid);

    public CommonResponse<List<Borrow>> getBorrowByUserId(String userid);
    public CommonResponse<Borrow> deleteBorrowById(int transactionid);
    public CommonResponse<Borrow> postBorrow(String userid, String equipmentid, Timestamp borrowDate);
    public CommonResponse<Borrow> putBorrow(int transactionid,Timestamp returndate);
}